/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package clientereligadora.formularios;

import clientereligadora.conexao.Conexao;
import clientereligadora.entidades.WhCalibration;
import clientereligadora.operacoes.Operacao;

import com.mysql.jdbc.ResultSet;
import com.mysql.jdbc.Statement;
import java.awt.Cursor;
import java.awt.event.KeyEvent;
import java.sql.SQLException;
import java.text.Normalizer;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.PlainDocument;

/**
 *
 * @author leandro.aquino
 */
public final class FormCalibracao extends javax.swing.JFrame {

    FormPrincipal painelCalibracao;
      SimpleDateFormat dateFormatDB = new SimpleDateFormat("yyyy-MM-dd");
    Operacao operacao = new Operacao();
    List<WhCalibration> lista_wc;
    WhCalibration wc;
    ResultSet rs;
    Statement stmt;
    int idReligadora;
    int id;
    int opmode;
    int mmode;
    int wavmode;
    int compmode;
    int lcymode;
    int gain;
    int avrmsgain;
    int bvrmsgain;
    int cvrmsgain;
    int aigain;
    int bigain;
    int cigain;
    int awg;
    int bwg;
    int cwg;
    int avarg;
    int bvarg;
    int cvarg;
    int avag;
    int bvag;
    int cvag;
    int avrmsos;
    int bvrmsos;
    int cvrmsos;
    int airmsos;
    int birmsos;
    int cirmsos;
    int awattos;
    int bwattos;
    int cwattos;
    int avaros;
    int bvaros;
    int cvaros;
    int aphcal;
    int bphcal;
    int cphcal;
    int wdir;
    int vardir;
    int vadiv;
    int apcfnum;
    int apcfden;
    int varcfnum;
    int varcfden;
    Date data;
    String datetime;

    /**
     * Creates new form FormCalibracao
     */
    public FormCalibracao() {
       
        
        initComponents();
          wc = new WhCalibration();
       
        formataCampoInteiro();
        desabilitaCampos();
        consultaIdReligadora();
       
        setLocationRelativeTo(this);
        
    }
  public void consultaIdReligadora() {
        String command = "SELECT *  FROM dataserverreligadora.whcalibration  ";

        try {
            stmt = (Statement) Conexao.conn.createStatement();

            rs = (ResultSet) stmt.executeQuery(command);
            //grava fields
        } catch (SQLException e) {
            System.out.println(e);
        }
    }

    public void formataCampoInteiro() {

        txt_aigain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_airmsos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_apcfden.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_apcfnum.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_aphcal.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_avag.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_avaros.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_avrmsgain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_avrmsos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_awattos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_awg.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bigain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_birmsos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bphcal.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bvag.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bvarg.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bvaros.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bvrmsgain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bvrmsos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bwattos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_bwg.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cigain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_compmode.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cirmsos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cphcal.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cvag.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cvarg.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cvaros.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cvrmsgain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cvrmsos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cwattos.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_cwg.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_data.setDocument(new FormPrincipal.limitaCaracterData());
        txt_gain.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_id.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_idReligadora.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_lcymode.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_mmode.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_vadiv.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_varcfden.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_varcfnum.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_vardir.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_wavmode.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_wdir.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_opmode.setDocument(new FormPrincipal.limitaCaracterInteiro());
        txt_avarg.setDocument(new FormPrincipal.limitaCaracterInteiro());
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        painel = new javax.swing.JPanel();
        txt_cvag = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        txt_data = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        txt_wdir = new javax.swing.JTextField();
        txt_cvaros = new javax.swing.JTextField();
        txt_aphcal = new javax.swing.JTextField();
        txt_cigain = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txt_birmsos = new javax.swing.JTextField();
        txt_bvrmsos = new javax.swing.JTextField();
        txt_bvag = new javax.swing.JTextField();
        txt_airmsos = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        txt_cvrmsos = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        txt_bvarg = new javax.swing.JTextField();
        txt_apcfden = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        txt_vardir = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        txt_cphcal = new javax.swing.JTextField();
        txt_bphcal = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        txt_cirmsos = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        txt_vadiv = new javax.swing.JTextField();
        txt_awg = new javax.swing.JTextField();
        jLabel39 = new javax.swing.JLabel();
        txt_id = new javax.swing.JTextField();
        jLabel40 = new javax.swing.JLabel();
        txt_idReligadora = new javax.swing.JTextField();
        txt_bvaros = new javax.swing.JTextField();
        txt_opmode = new javax.swing.JTextField();
        jLabel38 = new javax.swing.JLabel();
        txt_mmode = new javax.swing.JTextField();
        txt_cwg = new javax.swing.JTextField();
        txt_avarg = new javax.swing.JTextField();
        txt_awattos = new javax.swing.JTextField();
        txt_bwg = new javax.swing.JTextField();
        jLabel34 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        txt_apcfnum = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        txt_varcfnum = new javax.swing.JTextField();
        txt_gain = new javax.swing.JTextField();
        jLabel44 = new javax.swing.JLabel();
        txt_lcymode = new javax.swing.JTextField();
        jLabel45 = new javax.swing.JLabel();
        txt_cwattos = new javax.swing.JTextField();
        txt_avaros = new javax.swing.JTextField();
        txt_aigain = new javax.swing.JTextField();
        txt_varcfden = new javax.swing.JTextField();
        txt_bigain = new javax.swing.JTextField();
        txt_bwattos = new javax.swing.JTextField();
        txt_bvrmsgain = new javax.swing.JTextField();
        txt_cvarg = new javax.swing.JTextField();
        txt_cvrmsgain = new javax.swing.JTextField();
        txt_avag = new javax.swing.JTextField();
        txt_avrmsgain = new javax.swing.JTextField();
        txt_compmode = new javax.swing.JTextField();
        txt_wavmode = new javax.swing.JTextField();
        jLabel41 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        txt_avrmsos = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        jLabel51 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setPreferredSize(new java.awt.Dimension(600, 560));
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));

        painel.setBackground(new java.awt.Color(255, 255, 255));
        painel.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        txt_cvag.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cvag.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cvagKeyPressed(evt);
            }
        });

        jLabel27.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel27.setForeground(new java.awt.Color(0, 0, 109));
        jLabel27.setText("Awattos:");

        jLabel26.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel26.setForeground(new java.awt.Color(0, 0, 109));
        jLabel26.setText("Cvrmsos:");

        jLabel8.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(0, 0, 109));
        jLabel8.setText("Lcymode:");

        jLabel9.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel9.setForeground(new java.awt.Color(0, 0, 109));
        jLabel9.setText("Gain:");

        jLabel6.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(0, 0, 109));
        jLabel6.setText("Wavmode:");

        jLabel7.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(0, 0, 109));
        jLabel7.setText("Compmode:");

        jLabel12.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel12.setForeground(new java.awt.Color(0, 0, 109));
        jLabel12.setText("Bigain:");

        txt_data.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_data.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txt_dataActionPerformed(evt);
            }
        });
        txt_data.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_dataKeyPressed(evt);
            }
        });

        jLabel10.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel10.setForeground(new java.awt.Color(0, 0, 109));
        jLabel10.setText("Bvrmsgain:");

        jLabel47.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel47.setForeground(new java.awt.Color(0, 0, 109));
        jLabel47.setText("Data:");

        jLabel11.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel11.setForeground(new java.awt.Color(0, 0, 109));
        jLabel11.setText("Avrmsgain:");

        jLabel46.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel46.setForeground(new java.awt.Color(0, 0, 109));
        jLabel46.setText("Avaros:");

        txt_wdir.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_wdir.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_wdirKeyPressed(evt);
            }
        });

        txt_cvaros.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cvaros.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cvarosKeyPressed(evt);
            }
        });

        txt_aphcal.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_aphcal.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_aphcalKeyPressed(evt);
            }
        });

        txt_cigain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cigain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cigainKeyPressed(evt);
            }
        });

        jLabel15.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel15.setForeground(new java.awt.Color(0, 0, 109));
        jLabel15.setText("Cigain:");

        jLabel14.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel14.setForeground(new java.awt.Color(0, 0, 109));
        jLabel14.setText("Aigain:");

        jLabel13.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel13.setForeground(new java.awt.Color(0, 0, 109));
        jLabel13.setText("Cvrmsgain:");

        txt_birmsos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_birmsos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_birmsosKeyPressed(evt);
            }
        });

        txt_bvrmsos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bvrmsos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bvrmsosKeyPressed(evt);
            }
        });

        txt_bvag.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bvag.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bvagKeyPressed(evt);
            }
        });

        txt_airmsos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_airmsos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_airmsosKeyPressed(evt);
            }
        });

        jLabel29.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel29.setForeground(new java.awt.Color(0, 0, 109));
        jLabel29.setText("Cwg:");

        jLabel30.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel30.setForeground(new java.awt.Color(0, 0, 109));
        jLabel30.setText("Bvarg:");

        txt_cvrmsos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cvrmsos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cvrmsosKeyPressed(evt);
            }
        });

        jLabel28.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel28.setForeground(new java.awt.Color(0, 0, 109));
        jLabel28.setText("Bwg:");

        jLabel32.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel32.setForeground(new java.awt.Color(0, 0, 109));
        jLabel32.setText("Varcfden:");

        jLabel17.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel17.setForeground(new java.awt.Color(0, 0, 109));
        jLabel17.setText("Bvag:");

        jLabel33.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel33.setForeground(new java.awt.Color(0, 0, 109));
        jLabel33.setText("Vadiv:");

        txt_bvarg.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bvarg.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bvargKeyPressed(evt);
            }
        });

        txt_apcfden.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_apcfden.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_apcfdenKeyPressed(evt);
            }
        });

        jLabel19.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel19.setForeground(new java.awt.Color(0, 0, 109));
        jLabel19.setText("Cvarg:");

        txt_vardir.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_vardir.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_vardirKeyPressed(evt);
            }
        });

        jLabel18.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel18.setForeground(new java.awt.Color(0, 0, 109));
        jLabel18.setText("Cvag:");

        jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);

        txt_cphcal.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cphcal.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cphcalKeyPressed(evt);
            }
        });

        txt_bphcal.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bphcal.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bphcalKeyPressed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 0, 109));
        jLabel1.setText("ID:");

        jLabel3.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(0, 0, 109));
        jLabel3.setText("ID Religadora:");

        jLabel5.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(0, 0, 109));
        jLabel5.setText("Mmode:");

        jLabel4.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(0, 0, 109));
        jLabel4.setText("Opmode:");

        jLabel20.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel20.setForeground(new java.awt.Color(0, 0, 109));
        jLabel20.setText("Avag:");

        jLabel21.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel21.setForeground(new java.awt.Color(0, 0, 109));
        jLabel21.setText("Birmsos:");

        jLabel22.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel22.setForeground(new java.awt.Color(0, 0, 109));
        jLabel22.setText("Bvrmsos:");

        jLabel23.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel23.setForeground(new java.awt.Color(0, 0, 109));
        jLabel23.setText("Avrmsos:");

        txt_cirmsos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cirmsos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cirmsosKeyPressed(evt);
            }
        });

        jLabel24.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel24.setForeground(new java.awt.Color(0, 0, 109));
        jLabel24.setText("Cirmsos:");

        jLabel25.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel25.setForeground(new java.awt.Color(0, 0, 109));
        jLabel25.setText("Airmsos:");

        jLabel36.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel36.setForeground(new java.awt.Color(0, 0, 109));
        jLabel36.setText("Bwattos:");

        jLabel37.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel37.setForeground(new java.awt.Color(0, 0, 109));
        jLabel37.setText("Bphcal:");

        jLabel35.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel35.setForeground(new java.awt.Color(0, 0, 109));
        jLabel35.setText("Bvaros:");

        txt_vadiv.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_vadiv.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_vadivKeyPressed(evt);
            }
        });

        txt_awg.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_awg.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_awgKeyPressed(evt);
            }
        });

        jLabel39.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel39.setForeground(new java.awt.Color(0, 0, 109));
        jLabel39.setText("Cphcal:");

        txt_id.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_id.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_idKeyPressed(evt);
            }
        });

        jLabel40.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel40.setForeground(new java.awt.Color(0, 0, 109));
        jLabel40.setText("Aphcal:");

        txt_idReligadora.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_idReligadora.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_idReligadoraKeyPressed(evt);
            }
        });

        txt_bvaros.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bvaros.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bvarosKeyPressed(evt);
            }
        });

        txt_opmode.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_opmode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_opmodeKeyPressed(evt);
            }
        });

        jLabel38.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel38.setForeground(new java.awt.Color(0, 0, 109));
        jLabel38.setText("Cvaros:");

        txt_mmode.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_mmode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_mmodeKeyPressed(evt);
            }
        });

        txt_cwg.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cwg.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cwgKeyPressed(evt);
            }
        });

        txt_avarg.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_avarg.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_avargKeyPressed(evt);
            }
        });

        txt_awattos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_awattos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_awattosKeyPressed(evt);
            }
        });

        txt_bwg.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bwg.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bwgKeyPressed(evt);
            }
        });

        jLabel34.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel34.setForeground(new java.awt.Color(0, 0, 109));
        jLabel34.setText("Cwattos:");

        jLabel16.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel16.setForeground(new java.awt.Color(0, 0, 109));
        jLabel16.setText("Awg");

        txt_apcfnum.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_apcfnum.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_apcfnumKeyPressed(evt);
            }
        });

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        txt_varcfnum.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_varcfnum.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_varcfnumKeyPressed(evt);
            }
        });

        txt_gain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_gain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_gainKeyPressed(evt);
            }
        });

        jLabel44.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel44.setForeground(new java.awt.Color(0, 0, 109));
        jLabel44.setText("Varcfnum:");

        txt_lcymode.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_lcymode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_lcymodeKeyPressed(evt);
            }
        });

        jLabel45.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel45.setForeground(new java.awt.Color(0, 0, 109));
        jLabel45.setText("Apcfnum:");

        txt_cwattos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cwattos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cwattosKeyPressed(evt);
            }
        });

        txt_avaros.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_avaros.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_avarosKeyPressed(evt);
            }
        });

        txt_aigain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_aigain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_aigainKeyPressed(evt);
            }
        });

        txt_varcfden.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_varcfden.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_varcfdenKeyPressed(evt);
            }
        });

        txt_bigain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bigain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bigainKeyPressed(evt);
            }
        });

        txt_bwattos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bwattos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bwattosKeyPressed(evt);
            }
        });

        txt_bvrmsgain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_bvrmsgain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_bvrmsgainKeyPressed(evt);
            }
        });

        txt_cvarg.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cvarg.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cvargKeyPressed(evt);
            }
        });

        txt_cvrmsgain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cvrmsgain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cvrmsgainKeyPressed(evt);
            }
        });

        txt_avag.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_avag.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_avagKeyPressed(evt);
            }
        });

        txt_avrmsgain.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_avrmsgain.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_avrmsgainKeyPressed(evt);
            }
        });

        txt_compmode.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_compmode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_compmodeKeyPressed(evt);
            }
        });

        txt_wavmode.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_wavmode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_wavmodeKeyPressed(evt);
            }
        });

        jLabel41.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel41.setForeground(new java.awt.Color(0, 0, 109));
        jLabel41.setText("Apcfden:");

        jLabel43.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel43.setForeground(new java.awt.Color(0, 0, 109));
        jLabel43.setText("Wdir:");

        jLabel31.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel31.setForeground(new java.awt.Color(0, 0, 109));
        jLabel31.setText("Avarg:");

        jLabel42.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel42.setForeground(new java.awt.Color(0, 0, 109));
        jLabel42.setText("Vardiv:");

        txt_avrmsos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_avrmsos.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_avrmsosKeyPressed(evt);
            }
        });

        jLabel48.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/2-1.png"))); // NOI18N
        jLabel48.setText("jLabel48");
        jLabel48.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel48MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel48MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel48MouseExited(evt);
            }
        });

        jLabel49.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/3-1.png"))); // NOI18N
        jLabel49.setText("jLabel48");
        jLabel49.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel49MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel49MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel49MouseExited(evt);
            }
        });

        jLabel50.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/1-1.png"))); // NOI18N
        jLabel50.setText("jLabel48");
        jLabel50.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel50MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel50MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel50MouseExited(evt);
            }
        });

        jLabel51.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/4-1.png"))); // NOI18N
        jLabel51.setText("jLabel48");
        jLabel51.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel51MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel51MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel51MouseExited(evt);
            }
        });

        javax.swing.GroupLayout painelLayout = new javax.swing.GroupLayout(painel);
        painel.setLayout(painelLayout);
        painelLayout.setHorizontalGroup(
            painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txt_idReligadora, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32)
                        .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(63, 63, 63))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 515, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(painelLayout.createSequentialGroup()
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel6)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel8)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel11)
                                    .addComponent(jLabel10)
                                    .addComponent(jLabel13)
                                    .addComponent(jLabel14)
                                    .addComponent(jLabel12)
                                    .addComponent(jLabel15)
                                    .addComponent(jLabel16)
                                    .addComponent(jLabel28)
                                    .addComponent(jLabel29))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txt_opmode, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_mmode, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_wavmode, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addGap(1, 1, 1)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_compmode, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_lcymode, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_gain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_avrmsgain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_bvrmsgain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cvrmsgain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_aigain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_bigain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cigain, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_awg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_bwg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cwg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addGap(26, 26, 26)
                                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addGap(10, 10, 10)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(11, 11, 11)
                                                .addComponent(jLabel31))
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(11, 11, 11)
                                                .addComponent(jLabel30))
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(11, 11, 11)
                                                .addComponent(jLabel19))
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(14, 14, 14)
                                                .addComponent(jLabel20))
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(14, 14, 14)
                                                .addComponent(jLabel17))
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(14, 14, 14)
                                                .addComponent(jLabel18))
                                            .addComponent(jLabel22)
                                            .addComponent(jLabel26)
                                            .addComponent(jLabel25)
                                            .addComponent(jLabel21)
                                            .addComponent(jLabel24)
                                            .addComponent(jLabel27)
                                            .addComponent(jLabel36)
                                            .addComponent(jLabel34))
                                        .addGap(17, 17, 17))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel23)
                                        .addGap(18, 18, 18)))
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txt_avarg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_bvarg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_cvarg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_avag, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_awattos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_bwattos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_cwattos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addGap(2, 2, 2)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_bvag, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cvag, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_avrmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_bvrmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cvrmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_airmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_birmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cirmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addGap(47, 47, 47)
                                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(4, 4, 4)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel46)
                                    .addComponent(jLabel35)
                                    .addComponent(jLabel38)
                                    .addComponent(jLabel40)
                                    .addComponent(jLabel37)
                                    .addComponent(jLabel39)
                                    .addComponent(jLabel43)
                                    .addComponent(jLabel42)
                                    .addComponent(jLabel33)
                                    .addComponent(jLabel45)
                                    .addComponent(jLabel41)
                                    .addComponent(jLabel44)
                                    .addComponent(jLabel32)
                                    .addComponent(jLabel47))
                                .addGap(16, 16, 16)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txt_avaros, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_bvaros, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_cvaros, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_aphcal, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addGap(2, 2, 2)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_bphcal, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cphcal, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_wdir, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_vardir, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_vadiv, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_apcfnum, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_apcfden, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_varcfnum, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_varcfden, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_data, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        painelLayout.setVerticalGroup(
            painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txt_idReligadora, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel3))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6)
                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addComponent(txt_opmode, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_mmode, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_wavmode, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(txt_compmode, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_lcymode, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_gain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_avrmsgain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bvrmsgain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cvrmsgain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(txt_aigain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bigain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cigain, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_awg, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bwg, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cwg, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addComponent(txt_avarg, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bvarg, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cvarg, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(txt_avag, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bvag, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cvag, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_avrmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel23))
                        .addGap(11, 11, 11)
                        .addComponent(txt_bvrmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cvrmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(txt_airmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_birmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cirmsos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_awattos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bwattos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cwattos, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addComponent(txt_avaros, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bvaros, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cvaros, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(txt_aphcal, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_bphcal, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_cphcal, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_wdir, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_vardir, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_vadiv, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(txt_apcfnum, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_apcfden, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_varcfnum, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_varcfden, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(txt_data, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(painelLayout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel5)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel6)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel7)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel8)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel9)
                                .addGap(14, 14, 14)
                                .addComponent(jLabel11)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel10)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel13)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel14)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel12)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel15)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel16)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel28)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel29))
                            .addGroup(painelLayout.createSequentialGroup()
                                .addComponent(jLabel31)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel30)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel19)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel20)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel17)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel18)
                                .addGap(40, 40, 40)
                                .addComponent(jLabel22)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel26)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel25)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel21)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel24)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel27)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel36)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel34))
                            .addGroup(painelLayout.createSequentialGroup()
                                .addComponent(jLabel46)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel35)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel38)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel40)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel37)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel39)
                                .addGap(14, 14, 14)
                                .addComponent(jLabel43)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel42)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel33)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel45)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel41)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel44)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel32)
                                .addGap(12, 12, 12)
                                .addComponent(jLabel47)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButton1.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jButton1.setText("jButton1");

        jButton2.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/Modify copy.png"))); // NOI18N
        jButton2.setText("EDITAR");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/remover copy.png"))); // NOI18N
        jButton3.setText("CANCELAR");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(painel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(11, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(59, 59, 59)
                .addComponent(jButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton2)
                .addGap(88, 88, 88)
                .addComponent(jButton3)
                .addGap(35, 35, 35))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(painel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 560, 540));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txt_cvagKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cvagKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cvagKeyPressed

    private void txt_dataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txt_dataActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_dataActionPerformed

    private void txt_dataKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_dataKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_dataKeyPressed

    private void txt_wdirKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_wdirKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_wdirKeyPressed

    private void txt_cvarosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cvarosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cvarosKeyPressed

    private void txt_aphcalKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_aphcalKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_aphcalKeyPressed

    private void txt_cigainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cigainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_cigainKeyPressed

    private void txt_birmsosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_birmsosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_birmsosKeyPressed

    private void txt_bvrmsosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bvrmsosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bvrmsosKeyPressed

    private void txt_bvagKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bvagKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bvagKeyPressed

    private void txt_airmsosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_airmsosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_airmsosKeyPressed

    private void txt_cvrmsosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cvrmsosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cvrmsosKeyPressed

    private void txt_bvargKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bvargKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }   // TODO add your handling code here:
    }//GEN-LAST:event_txt_bvargKeyPressed

    private void txt_apcfdenKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_apcfdenKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_apcfdenKeyPressed

    private void txt_vardirKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_vardirKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_vardirKeyPressed

    private void txt_cphcalKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cphcalKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cphcalKeyPressed

    private void txt_bphcalKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bphcalKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bphcalKeyPressed

    private void txt_cirmsosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cirmsosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cirmsosKeyPressed

    private void txt_vadivKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_vadivKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_vadivKeyPressed

    private void txt_awgKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_awgKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_awgKeyPressed

    private void txt_idKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_idKeyPressed

    }//GEN-LAST:event_txt_idKeyPressed

    private void txt_idReligadoraKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_idReligadoraKeyPressed

        int key = evt.getKeyCode();

        if (key == KeyEvent.VK_ENTER) {
            idReligadora = Integer.parseInt(txt_idReligadora.getText());
            getGadosReligadora(idReligadora);
        }
    }//GEN-LAST:event_txt_idReligadoraKeyPressed

    private void txt_bvarosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bvarosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bvarosKeyPressed

    private void txt_opmodeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_opmodeKeyPressed

        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
          //  considerarEnterComoTab(txt_opmode);
        }
    }//GEN-LAST:event_txt_opmodeKeyPressed

    private void txt_mmodeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_mmodeKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
         //   considerarEnterComoTab(txt_mmode);
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_mmodeKeyPressed

    private void txt_cwgKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cwgKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }    // TODO add your handling code here:
    }//GEN-LAST:event_txt_cwgKeyPressed

    private void txt_avargKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_avargKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        } // TODO add your handling code here:
    }//GEN-LAST:event_txt_avargKeyPressed

    private void txt_awattosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_awattosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_awattosKeyPressed

    private void txt_bwgKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bwgKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_bwgKeyPressed

    private void txt_apcfnumKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_apcfnumKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_apcfnumKeyPressed

    private void txt_varcfnumKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_varcfnumKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_varcfnumKeyPressed

    private void txt_gainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_gainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_gainKeyPressed

    private void txt_lcymodeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_lcymodeKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_lcymodeKeyPressed

    private void txt_cwattosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cwattosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cwattosKeyPressed

    private void txt_avarosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_avarosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_avarosKeyPressed

    private void txt_aigainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_aigainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_aigainKeyPressed

    private void txt_varcfdenKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_varcfdenKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_varcfdenKeyPressed

    private void txt_bigainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bigainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bigainKeyPressed

    private void txt_bwattosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bwattosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bwattosKeyPressed

    private void txt_bvrmsgainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_bvrmsgainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_bvrmsgainKeyPressed

    private void txt_cvargKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cvargKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_cvargKeyPressed

    private void txt_cvrmsgainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cvrmsgainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cvrmsgainKeyPressed

    private void txt_avagKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_avagKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }   // TODO add your handling code here:
    }//GEN-LAST:event_txt_avagKeyPressed

    private void txt_avrmsgainKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_avrmsgainKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_avrmsgainKeyPressed

    private void txt_compmodeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_compmodeKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_compmodeKeyPressed

    private void txt_wavmodeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_wavmodeKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_wavmodeKeyPressed

    private void txt_avrmsosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_avrmsosKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_avrmsosKeyPressed

    private void jLabel48MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel48MouseClicked
        desabilitaCampos();
        anteriorRegistro();
        jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel48MouseClicked

    private void jLabel48MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel48MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel48MouseEntered

    private void jLabel48MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel48MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));         // TODO add your handling code here:
    }//GEN-LAST:event_jLabel48MouseExited

    private void jLabel49MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseClicked
        desabilitaCampos();
        primeiroRegistro();
        jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel49MouseClicked

    private void jLabel49MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel49MouseEntered

    private void jLabel49MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel49MouseExited

    private void jLabel50MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseClicked
        desabilitaCampos();
        proximoRegistro();
        jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel50MouseClicked

    private void jLabel50MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel50MouseEntered

    private void jLabel50MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));         // TODO add your handling code here:
    }//GEN-LAST:event_jLabel50MouseExited

    private void jLabel51MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel51MouseClicked
        desabilitaCampos();
        ultimoRegistro();
        jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel51MouseClicked

    private void jLabel51MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel51MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel51MouseEntered

    private void jLabel51MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel51MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));         // TODO add your handling code here:
    }//GEN-LAST:event_jLabel51MouseExited

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        String acao = jButton2.getText();
        if ("EDITAR".equals(acao)) {
            habilitaCampos();        // TODO add your handling code here:
            txt_id.setEnabled(false);
            txt_idReligadora.setEnabled(false);
            jButton2.setText("SALVAR");
        }
        if ("SALVAR".equals(acao)) {
            desabilitaCampos();
            jButton2.setText("EDITAR");
            try {
                getParamentros();
            } catch (ParseException ex) {
                Logger.getLogger(FormPrincipal.class.getName()).log(Level.SEVERE, null, ex);
            }
        }

    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed

        this.setVisible(false);

    }//GEN-LAST:event_jButton3ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FormCalibracao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FormCalibracao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FormCalibracao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FormCalibracao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new FormCalibracao().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JPanel painel;
    private javax.swing.JTextField txt_aigain;
    private javax.swing.JTextField txt_airmsos;
    private javax.swing.JTextField txt_apcfden;
    private javax.swing.JTextField txt_apcfnum;
    private javax.swing.JTextField txt_aphcal;
    private javax.swing.JTextField txt_avag;
    private javax.swing.JTextField txt_avarg;
    private javax.swing.JTextField txt_avaros;
    private javax.swing.JTextField txt_avrmsgain;
    private javax.swing.JTextField txt_avrmsos;
    private javax.swing.JTextField txt_awattos;
    private javax.swing.JTextField txt_awg;
    private javax.swing.JTextField txt_bigain;
    private javax.swing.JTextField txt_birmsos;
    private javax.swing.JTextField txt_bphcal;
    private javax.swing.JTextField txt_bvag;
    private javax.swing.JTextField txt_bvarg;
    private javax.swing.JTextField txt_bvaros;
    private javax.swing.JTextField txt_bvrmsgain;
    private javax.swing.JTextField txt_bvrmsos;
    private javax.swing.JTextField txt_bwattos;
    private javax.swing.JTextField txt_bwg;
    private javax.swing.JTextField txt_cigain;
    private javax.swing.JTextField txt_cirmsos;
    private javax.swing.JTextField txt_compmode;
    private javax.swing.JTextField txt_cphcal;
    private javax.swing.JTextField txt_cvag;
    private javax.swing.JTextField txt_cvarg;
    private javax.swing.JTextField txt_cvaros;
    private javax.swing.JTextField txt_cvrmsgain;
    private javax.swing.JTextField txt_cvrmsos;
    private javax.swing.JTextField txt_cwattos;
    private javax.swing.JTextField txt_cwg;
    private javax.swing.JTextField txt_data;
    private javax.swing.JTextField txt_gain;
    private javax.swing.JTextField txt_id;
    private javax.swing.JTextField txt_idReligadora;
    private javax.swing.JTextField txt_lcymode;
    private javax.swing.JTextField txt_mmode;
    private javax.swing.JTextField txt_opmode;
    private javax.swing.JTextField txt_vadiv;
    private javax.swing.JTextField txt_varcfden;
    private javax.swing.JTextField txt_varcfnum;
    private javax.swing.JTextField txt_vardir;
    private javax.swing.JTextField txt_wavmode;
    private javax.swing.JTextField txt_wdir;
    // End of variables declaration//GEN-END:variables

 public static class limitaCaracterInteiro extends PlainDocument {

        int valor = 2;

        @Override
        public void insertString(int offs, String str, AttributeSet a)
                throws BadLocationException {
            if (str != null && (getLength() + str.length() < valor)) {
                String sentenca = Normalizer.normalize(str.toUpperCase(), Normalizer.Form.NFD); // elimina os acentos.
                sentenca = sentenca.replaceAll("[^0-9]", "");

                super.insertString(offs, sentenca, a);
            }
        }
    }

    public static class limitaCaracterData extends PlainDocument {

        int valor = 8;

        @Override
        public void insertString(int offs, String str, AttributeSet a)
                throws BadLocationException {
            if (str != null && (getLength() + str.length() < valor)) {
                String sentenca = Normalizer.normalize(str.toUpperCase(), Normalizer.Form.NFD); // elimina os acentos.
                sentenca = sentenca.replaceAll("[^0-9]", "");

                super.insertString(offs, sentenca, a);
            }
        }
    }

    public void getGadosReligadora(int codReligadora) {
        int vet[] = operacao.getDadosCalibradora(codReligadora);

        txt_id.setText("" + vet[0]);
        txt_idReligadora.setText("" + vet[1]);
        txt_opmode.setText("" + vet[2]);
        txt_mmode.setText("" + vet[3]);
        txt_wavmode.setText("" + vet[4]);
        txt_compmode.setText("" + vet[5]);
        txt_lcymode.setText("" + vet[6]);
        txt_gain.setText("" + vet[7]);
        txt_avrmsgain.setText("" + vet[8]);
        txt_bvrmsgain.setText("" + vet[9]);
        txt_cvrmsgain.setText("" + vet[10]);
        txt_aigain.setText("" + vet[11]);
        txt_bigain.setText("" + vet[12]);
        txt_cigain.setText("" + vet[13]);
        txt_awg.setText("" + vet[14]);
        txt_bwg.setText("" + vet[15]);
        txt_cwg.setText("" + vet[16]);
        txt_avarg.setText("" + vet[17]);
        txt_bvarg.setText("" + vet[18]);
        txt_cvarg.setText("" + vet[19]);
        txt_avag.setText("" + vet[20]);
        txt_bvag.setText("" + vet[21]);
        txt_cvag.setText("" + vet[22]);
        txt_avrmsos.setText("" + vet[23]);
        txt_bvrmsos.setText("" + vet[24]);
        txt_cvrmsos.setText("" + vet[25]);
        txt_airmsos.setText("" + vet[26]);
        txt_birmsos.setText("" + vet[27]);
        txt_cirmsos.setText("" + vet[28]);
        txt_awattos.setText("" + vet[29]);
        txt_bwattos.setText("" + vet[30]);
        txt_cwattos.setText("" + vet[31]);
        txt_avaros.setText("" + vet[32]);
        txt_bvaros.setText("" + vet[33]);
        txt_cvaros.setText("" + vet[34]);
        txt_aphcal.setText("" + vet[35]);
        txt_bphcal.setText("" + vet[36]);
        txt_cphcal.setText("" + vet[37]);
        txt_wdir.setText("" + vet[38]);
        txt_vardir.setText("" + vet[39]);
        txt_vadiv.setText("" + vet[40]);
        txt_apcfnum.setText("" + vet[41]);
        txt_apcfden.setText("" + vet[42]);
        txt_varcfnum.setText("" + vet[43]);
        txt_varcfden.setText("" + vet[44]);
        txt_data.setText("" + vet[45]);

    }

    public void habilitaCampos() {
        txt_id.setEnabled(true);
        //txt_idReligadora.setEnabled(true); 
        txt_opmode.setEnabled(true);
        txt_mmode.setEnabled(true);
        txt_wavmode.setEnabled(true);
        txt_compmode.setEnabled(true);
        txt_lcymode.setEnabled(true);
        txt_gain.setEnabled(true);
        txt_avrmsgain.setEnabled(true);
        txt_bvrmsgain.setEnabled(true);
        txt_cvrmsgain.setEnabled(true);
        txt_aigain.setEnabled(true);
        txt_bigain.setEnabled(true);
        txt_cigain.setEnabled(true);
        txt_awg.setEnabled(true);
        txt_bwg.setEnabled(true);
        txt_cwg.setEnabled(true);
        txt_avarg.setEnabled(true);
        txt_bvarg.setEnabled(true);
        txt_cvarg.setEnabled(true);
        txt_avag.setEnabled(true);
        txt_bvag.setEnabled(true);
        txt_cvag.setEnabled(true);
        txt_avrmsos.setEnabled(true);
        txt_bvrmsos.setEnabled(true);
        txt_cvrmsos.setEnabled(true);
        txt_airmsos.setEnabled(true);
        txt_birmsos.setEnabled(true);
        txt_cirmsos.setEnabled(true);
        txt_awattos.setEnabled(true);
        txt_bwattos.setEnabled(true);
        txt_cwattos.setEnabled(true);
        txt_avaros.setEnabled(true);
        txt_bvaros.setEnabled(true);
        txt_cvaros.setEnabled(true);
        txt_aphcal.setEnabled(true);
        txt_bphcal.setEnabled(true);
        txt_cphcal.setEnabled(true);
        txt_wdir.setEnabled(true);
        txt_vardir.setEnabled(true);
        txt_vadiv.setEnabled(true);
        txt_apcfnum.setEnabled(true);
        txt_apcfden.setEnabled(true);
        txt_varcfnum.setEnabled(true);
        txt_varcfden.setEnabled(true);
        txt_data.setEnabled(true);
    }

    public void desabilitaCampos() {
        txt_id.setEnabled(false);
        // txt_idReligadora.setEnabled(false); 
        txt_opmode.setEnabled(false);
        txt_mmode.setEnabled(false);
        txt_wavmode.setEnabled(false);
        txt_compmode.setEnabled(false);
        txt_lcymode.setEnabled(false);
        txt_gain.setEnabled(false);
        txt_avrmsgain.setEnabled(false);
        txt_bvrmsgain.setEnabled(false);
        txt_cvrmsgain.setEnabled(false);
        txt_aigain.setEnabled(false);
        txt_bigain.setEnabled(false);
        txt_cigain.setEnabled(false);
        txt_awg.setEnabled(false);
        txt_bwg.setEnabled(false);
        txt_cwg.setEnabled(false);
        txt_avarg.setEnabled(false);
        txt_bvarg.setEnabled(false);
        txt_cvarg.setEnabled(false);
        txt_avag.setEnabled(false);
        txt_bvag.setEnabled(false);
        txt_cvag.setEnabled(false);
        txt_avrmsos.setEnabled(false);
        txt_bvrmsos.setEnabled(false);
        txt_cvrmsos.setEnabled(false);
        txt_airmsos.setEnabled(false);
        txt_birmsos.setEnabled(false);
        txt_cirmsos.setEnabled(false);
        txt_awattos.setEnabled(false);
        txt_bwattos.setEnabled(false);
        txt_cwattos.setEnabled(false);
        txt_avaros.setEnabled(false);
        txt_bvaros.setEnabled(false);
        txt_cvaros.setEnabled(false);
        txt_aphcal.setEnabled(false);
        txt_bphcal.setEnabled(false);
        txt_cphcal.setEnabled(false);
        txt_wdir.setEnabled(false);
        txt_vardir.setEnabled(false);
        txt_vadiv.setEnabled(false);
        txt_apcfnum.setEnabled(false);
        txt_apcfden.setEnabled(false);
        txt_varcfnum.setEnabled(false);
        txt_varcfden.setEnabled(false);
        txt_data.setEnabled(false);
    }

    private void primeiroRegistro() {                //METODO QUE CARREGA O ULTIMO REGISTRO DO BD  
        try {

            rs.first();
            idReligadora = rs.getInt("id_religadora");

            int vet[] = operacao.getDadosCalibradora(idReligadora);
            System.out.println(idReligadora);
            txt_id.setText("" + vet[0]);
            txt_idReligadora.setText("" + vet[1]);
            txt_opmode.setText("" + vet[2]);
            txt_mmode.setText("" + vet[3]);
            txt_wavmode.setText("" + vet[4]);
            txt_compmode.setText("" + vet[5]);
            txt_lcymode.setText("" + vet[6]);
            txt_gain.setText("" + vet[7]);
            txt_avrmsgain.setText("" + vet[8]);
            txt_bvrmsgain.setText("" + vet[9]);
            txt_cvrmsgain.setText("" + vet[10]);
            txt_aigain.setText("" + vet[11]);
            txt_bigain.setText("" + vet[12]);
            txt_cigain.setText("" + vet[13]);
            txt_awg.setText("" + vet[14]);
            txt_bwg.setText("" + vet[15]);
            txt_cwg.setText("" + vet[16]);
            txt_avarg.setText("" + vet[17]);
            txt_bvarg.setText("" + vet[18]);
            txt_cvarg.setText("" + vet[19]);
            txt_avag.setText("" + vet[20]);
            txt_bvag.setText("" + vet[21]);
            txt_cvag.setText("" + vet[22]);
            txt_avrmsos.setText("" + vet[23]);
            txt_bvrmsos.setText("" + vet[24]);
            txt_cvrmsos.setText("" + vet[25]);
            txt_airmsos.setText("" + vet[26]);
            txt_birmsos.setText("" + vet[27]);
            txt_cirmsos.setText("" + vet[28]);
            txt_awattos.setText("" + vet[29]);
            txt_bwattos.setText("" + vet[30]);
            txt_cwattos.setText("" + vet[31]);
            txt_avaros.setText("" + vet[32]);
            txt_bvaros.setText("" + vet[33]);
            txt_cvaros.setText("" + vet[34]);
            txt_aphcal.setText("" + vet[35]);
            txt_bphcal.setText("" + vet[36]);
            txt_cphcal.setText("" + vet[37]);
            txt_wdir.setText("" + vet[38]);
            txt_vardir.setText("" + vet[39]);
            txt_vadiv.setText("" + vet[40]);
            txt_apcfnum.setText("" + vet[41]);
            txt_apcfden.setText("" + vet[42]);
            txt_varcfnum.setText("" + vet[43]);
            txt_varcfden.setText("" + vet[44]);
            txt_data.setText("" + vet[45]);


        } catch (Exception e2) {

            JOptionPane.showMessageDialog(this, "PRIMEIRO /n NÃO EXISTEM MAIS REGISTROS");
        }
    }

    private void anteriorRegistro() {                //METODO QUE CARREGA O ULTIMO REGISTRO DO BD  
        try {

            rs.previous();
            idReligadora = rs.getInt("id_religadora");

            int vet[] = operacao.getDadosCalibradora(idReligadora);



            txt_id.setText("" + vet[0]);
            txt_idReligadora.setText("" + vet[1]);
            txt_opmode.setText("" + vet[2]);
            txt_mmode.setText("" + vet[3]);
            txt_wavmode.setText("" + vet[4]);
            txt_compmode.setText("" + vet[5]);
            txt_lcymode.setText("" + vet[6]);
            txt_gain.setText("" + vet[7]);
            txt_avrmsgain.setText("" + vet[8]);
            txt_bvrmsgain.setText("" + vet[9]);
            txt_cvrmsgain.setText("" + vet[10]);
            txt_aigain.setText("" + vet[11]);
            txt_bigain.setText("" + vet[12]);
            txt_cigain.setText("" + vet[13]);
            txt_awg.setText("" + vet[14]);
            txt_bwg.setText("" + vet[15]);
            txt_cwg.setText("" + vet[16]);
            txt_avarg.setText("" + vet[17]);
            txt_bvarg.setText("" + vet[18]);
            txt_cvarg.setText("" + vet[19]);
            txt_avag.setText("" + vet[20]);
            txt_bvag.setText("" + vet[21]);
            txt_cvag.setText("" + vet[22]);
            txt_avrmsos.setText("" + vet[23]);
            txt_bvrmsos.setText("" + vet[24]);
            txt_cvrmsos.setText("" + vet[25]);
            txt_airmsos.setText("" + vet[26]);
            txt_birmsos.setText("" + vet[27]);
            txt_cirmsos.setText("" + vet[28]);
            txt_awattos.setText("" + vet[29]);
            txt_bwattos.setText("" + vet[30]);
            txt_cwattos.setText("" + vet[31]);
            txt_avaros.setText("" + vet[32]);
            txt_bvaros.setText("" + vet[33]);
            txt_cvaros.setText("" + vet[34]);
            txt_aphcal.setText("" + vet[35]);
            txt_bphcal.setText("" + vet[36]);
            txt_cphcal.setText("" + vet[37]);
            txt_wdir.setText("" + vet[38]);
            txt_vardir.setText("" + vet[39]);
            txt_vadiv.setText("" + vet[40]);
            txt_apcfnum.setText("" + vet[41]);
            txt_apcfden.setText("" + vet[42]);
            txt_varcfnum.setText("" + vet[43]);
            txt_varcfden.setText("" + vet[44]);
            txt_data.setText("" + vet[45]);

            //jButton2.setEnabled(false);
        } catch (Exception e2) {
            JOptionPane.showMessageDialog(this, "NÃO EXISTEM MAIS REGISTROS");

        }
    }

    private void proximoRegistro() {                //METODO QUE CARREGA O PROXIMO REGISTRO DO EM RELACAO A QUAL SE ESTA NO BD  
        try {


            rs.next();
            int idReligadora = rs.getInt("id_religadora");
            System.out.println(idReligadora);
            int vet[] = operacao.getDadosCalibradora(idReligadora);

            txt_id.setText("" + vet[0]);
            txt_idReligadora.setText("" + vet[1]);
            txt_opmode.setText("" + vet[2]);
            txt_mmode.setText("" + vet[3]);
            txt_wavmode.setText("" + vet[4]);
            txt_compmode.setText("" + vet[5]);
            txt_lcymode.setText("" + vet[6]);
            txt_gain.setText("" + vet[7]);
            txt_avrmsgain.setText("" + vet[8]);
            txt_bvrmsgain.setText("" + vet[9]);
            txt_cvrmsgain.setText("" + vet[10]);
            txt_aigain.setText("" + vet[11]);
            txt_bigain.setText("" + vet[12]);
            txt_cigain.setText("" + vet[13]);
            txt_awg.setText("" + vet[14]);
            txt_bwg.setText("" + vet[15]);
            txt_cwg.setText("" + vet[16]);
            txt_avarg.setText("" + vet[17]);
            txt_bvarg.setText("" + vet[18]);
            txt_cvarg.setText("" + vet[19]);
            txt_avag.setText("" + vet[20]);
            txt_bvag.setText("" + vet[21]);
            txt_cvag.setText("" + vet[22]);
            txt_avrmsos.setText("" + vet[23]);
            txt_bvrmsos.setText("" + vet[24]);
            txt_cvrmsos.setText("" + vet[25]);
            txt_airmsos.setText("" + vet[26]);
            txt_birmsos.setText("" + vet[27]);
            txt_cirmsos.setText("" + vet[28]);
            txt_awattos.setText("" + vet[29]);
            txt_bwattos.setText("" + vet[30]);
            txt_cwattos.setText("" + vet[31]);
            txt_avaros.setText("" + vet[32]);
            txt_bvaros.setText("" + vet[33]);
            txt_cvaros.setText("" + vet[34]);
            txt_aphcal.setText("" + vet[35]);
            txt_bphcal.setText("" + vet[36]);
            txt_cphcal.setText("" + vet[37]);
            txt_wdir.setText("" + vet[38]);
            txt_vardir.setText("" + vet[39]);
            txt_vadiv.setText("" + vet[40]);
            txt_apcfnum.setText("" + vet[41]);
            txt_apcfden.setText("" + vet[42]);
            txt_varcfnum.setText("" + vet[43]);
            txt_varcfden.setText("" + vet[44]);
            txt_data.setText("" + vet[45]);

        } catch (Exception e2) {
            JOptionPane.showMessageDialog(this, "NÃO EXISTEM MAIS REGISTROS");

        }
    }

    private void ultimoRegistro() {                //METODO QUE CARREGA O ULTIMO REGISTRO DO BD  
        try {

            rs.last();
            idReligadora = rs.getInt("id_religadora");
            System.out.println(idReligadora);
            int vet[] = operacao.getDadosCalibradora(idReligadora);

            txt_id.setText("" + vet[0]);
            txt_idReligadora.setText("" + vet[1]);
            txt_opmode.setText("" + vet[2]);
            txt_mmode.setText("" + vet[3]);
            txt_wavmode.setText("" + vet[4]);
            txt_compmode.setText("" + vet[5]);
            txt_lcymode.setText("" + vet[6]);
            txt_gain.setText("" + vet[7]);
            txt_avrmsgain.setText("" + vet[8]);
            txt_bvrmsgain.setText("" + vet[9]);
            txt_cvrmsgain.setText("" + vet[10]);
            txt_aigain.setText("" + vet[11]);
            txt_bigain.setText("" + vet[12]);
            txt_cigain.setText("" + vet[13]);
            txt_awg.setText("" + vet[14]);
            txt_bwg.setText("" + vet[15]);
            txt_cwg.setText("" + vet[16]);
            txt_avarg.setText("" + vet[17]);
            txt_bvarg.setText("" + vet[18]);
            txt_cvarg.setText("" + vet[19]);
            txt_avag.setText("" + vet[20]);
            txt_bvag.setText("" + vet[21]);
            txt_cvag.setText("" + vet[22]);
            txt_avrmsos.setText("" + vet[23]);
            txt_bvrmsos.setText("" + vet[24]);
            txt_cvrmsos.setText("" + vet[25]);
            txt_airmsos.setText("" + vet[26]);
            txt_birmsos.setText("" + vet[27]);
            txt_cirmsos.setText("" + vet[28]);
            txt_awattos.setText("" + vet[29]);
            txt_bwattos.setText("" + vet[30]);
            txt_cwattos.setText("" + vet[31]);
            txt_avaros.setText("" + vet[32]);
            txt_bvaros.setText("" + vet[33]);
            txt_cvaros.setText("" + vet[34]);
            txt_aphcal.setText("" + vet[35]);
            txt_bphcal.setText("" + vet[36]);
            txt_cphcal.setText("" + vet[37]);
            txt_wdir.setText("" + vet[38]);
            txt_vardir.setText("" + vet[39]);
            txt_vadiv.setText("" + vet[40]);
            txt_apcfnum.setText("" + vet[41]);
            txt_apcfden.setText("" + vet[42]);
            txt_varcfnum.setText("" + vet[43]);
            txt_varcfden.setText("" + vet[44]);
            txt_data.setText("" + vet[45]);

        } catch (Exception e2) {

            JOptionPane.showMessageDialog(this, "ULTIMO \n NÃO EXISTEM MAIS REGISTROS");

        }
    }

    public  void getParamentros() throws ParseException {
        id = Integer.parseInt(txt_id.getText());
        idReligadora = Integer.parseInt(txt_idReligadora.getText());
        opmode = Integer.parseInt(txt_opmode.getText());
        mmode = Integer.parseInt(txt_mmode.getText());
        wavmode = Integer.parseInt(txt_wavmode.getText());
        compmode = Integer.parseInt(txt_compmode.getText());
        lcymode = Integer.parseInt(txt_lcymode.getText());
        gain = Integer.parseInt(txt_gain.getText());
        avrmsgain = Integer.parseInt(txt_avrmsgain.getText());
        bvrmsgain = Integer.parseInt(txt_bvrmsgain.getText());
        cvrmsgain = Integer.parseInt(txt_cvrmsgain.getText());
        aigain = Integer.parseInt(txt_aigain.getText());
        bigain = Integer.parseInt(txt_bigain.getText());
        cigain = Integer.parseInt(txt_cigain.getText());
        awg = Integer.parseInt(txt_awg.getText());
        bwg = Integer.parseInt(txt_bwg.getText());
        cwg = Integer.parseInt(txt_cwg.getText());
        avarg = Integer.parseInt(txt_avarg.getText());
        bvarg = Integer.parseInt(txt_bvarg.getText());
        cvarg = Integer.parseInt(txt_cvarg.getText());
        avag = Integer.parseInt(txt_avag.getText());
        bvag = Integer.parseInt(txt_bvag.getText());
        cvag = Integer.parseInt(txt_cvag.getText());
        avrmsos = Integer.parseInt(txt_avrmsos.getText());
        bvrmsos = Integer.parseInt(txt_bvrmsos.getText());
        cvrmsos = Integer.parseInt(txt_cvrmsos.getText());
        airmsos = Integer.parseInt(txt_airmsos.getText());
        birmsos = Integer.parseInt(txt_birmsos.getText());
        cirmsos = Integer.parseInt(txt_cirmsos.getText());
        awattos = Integer.parseInt(txt_awattos.getText());
        bwattos = Integer.parseInt(txt_bwattos.getText());
        cwattos = Integer.parseInt(txt_cwattos.getText());
        avaros = Integer.parseInt(txt_avaros.getText());
        bvaros = Integer.parseInt(txt_bvaros.getText());
        cvaros = Integer.parseInt(txt_cvaros.getText());
        aphcal = Integer.parseInt(txt_aphcal.getText());
        bphcal = Integer.parseInt(txt_bphcal.getText());
        cphcal = Integer.parseInt(txt_cphcal.getText());
        wdir = Integer.parseInt(txt_wdir.getText());
        vardir = Integer.parseInt(txt_vardir.getText());
        vadiv = Integer.parseInt(txt_vadiv.getText());
        apcfnum = Integer.parseInt(txt_apcfnum.getText());
        apcfden = Integer.parseInt(txt_apcfden.getText());
        varcfnum = Integer.parseInt(txt_varcfnum.getText());
        varcfden = Integer.parseInt(txt_varcfden.getText());
        datetime = txt_data.getText();
        //data = new SimpleDateFormat("dd-MM-yyyy").parse(txt_data.getText());
        System.out.println(data);
         operacao.UpdateWhCalibration(id, opmode, mmode, wavmode, compmode, lcymode, 
                 gain, avrmsgain, bvrmsgain, cvrmsgain, aigain, bigain, cigain, 
                 awg, bwg, cwg, avarg, bvarg, cvarg, avag, bvag, cvag, avrmsos, 
                 bvrmsos, cvrmsos, airmsos, birmsos, cirmsos, awattos, bwattos, 
                 cwattos, avaros, bvaros, cvaros, aphcal, bphcal, cphcal, wdir, 
                 vardir, vadiv, apcfnum, apcfden, varcfnum, varcfden, data);
    }
//    public void updateWhcalibracao(){
//        wc.setId(id);
//        wc.setId_religadora(idReligadora);
//        wc.setOpmode(opmode);
//        wc.setMmode(mmode);
//        wc.setWavmode(wavmode);
//        wc.setCompmode(compmode);
//        wc.setLcycmode(lcymode);
//        wc.setGain(gain);
//        wc.setAvrmsgain(avrmsgain);
//        wc.setBvrmsgain(bvrmsgain);
//        wc.setCvrmsgain(cvrmsgain);
//        wc.setAigain(aigain);
//        wc.setBigain(bigain);
//        wc.setCigain(cigain);
//        wc.setAwg(awg);
//        wc.setBwg(bwg);
//        wc.setCwg(cwg);
//        wc.setAvarg(avarg);
//        wc.setBvarg(bvarg);
//        wc.setCvarg(cvarg);
//        wc.setAvag(avag);
//        wc.setBvag(bvag);
//        wc.setCvag(cvag);
//        wc.setAvrmsos(avrmsos);
//        wc.setBvrmsos(bvrmsos);
//        wc.setCvrmsos(cvrmsos);
//        wc.setAirmsos(airmsos);
//        wc.setBirmsos(birmsos);
//        wc.setCirmsos(cirmsos);
//        wc.setAwattos(awattos);
//        wc.setBwattos(bwattos);
//        wc.setCwattos(cwattos);
//        wc.setAvaros(avaros);
//        wc.setBvaros(bvaros);
//        wc.setCvaros(cvaros);
//        wc.setAphcal(aphcal);
//        wc.setBphcal(bphcal);
//        wc.setCphcal(cphcal);
//        wc.setWdiv(wdir);
//        wc.setVardiv(vardir);
//        wc.setVadiv(vadiv);
//        wc.setApcfnum(apcfnum);
//        wc.setApcfden(apcfden);
//        wc.setVarcfnum(varcfnum);
//        wc.setVarcfden(varcfden);
//        //wc.setDatetime(dateFormatDB.format(data));
//         System.out.println("data: "+data);
//        System.out.println("id: "+id+"\n" +"id Religgadora: "+idReligadora+"\n" );
//        operacao.UpdateWhCalibration(i);
//    }
}
